package main

import (
	"fmt"
	"os/exec"
	// "time"
)

func main() {
    nsjailPath := "/usr/local/bin/nsjail"

    cmd := exec.Command(
        nsjailPath,
		"-Mo",
		"--chroot", "/",
		"--time_limit", "2",
		"--rlimit_as", "64",
		"--",
		"/usr/bin/python3",
		"-c", "print('Hello OJ from GO')",
	)
	output, err := cmd.CombinedOutput()
	if err != nil {
		fmt.Printf("Error: %v\n", err)
	}

	fmt.Printf("Output:\n%s\n", string(output))
}
    
